import axios from '~/axios'

export function getNoticeList(page){
    return axios.get(`/admin/notice/${page}`)
}

export function createNotice(data){
    return axios.post(`/admin/notice`,data)
}
export function editNotice(id,data){
    return axios.post(`/admin/notice/${id}`,data)
}
export function deleteNotice(id){
    return axios.post(`/admin/notice/${id}/delete`)
}